<%@page import="com.biz.ProTypeBizImpl"%>
<%@page import="com.entity.ProType"%>
<%@page import="com.entity.UserInfo"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/admin/do/checklogin.jsp" %>
<%
	request.setCharacterEncoding("utf-8");
	String id=request.getParameter("id");
	String tname=request.getParameter("tname");
	String uname=((UserInfo)session.getAttribute("loger")).getUname();
	
	ProType pt=new ProType();
	pt.setId(Integer.parseInt(id));
	pt.setTname(tname);
	pt.setUname(uname);
	if(new ProTypeBizImpl().modProType(pt)==0){
	%>
		<script>alert("修改失败");</script>
	<%
	}
%>
<script>location='../showProType.jsp';</script>
